/**
 * TreeSelect 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/tree-select/style';

export const treeSelectThemeConfig: Partial<ComponentToken> = {
  nodeHoverBg: '#f5f5f5',
  nodeSelectedBg: '#e6f4ff',
};

export const getTreeSelectTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...treeSelectThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as TreeSelectComponentToken } from 'antd/es/tree-select/style';

